package com.petter.shiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : GD
 * @date :2021/8/25 : 17:19
 */
@Controller
public class LoginController {

    @RequestMapping({"/login"})
    public String login() {
        return "login";
    }

    @RequestMapping({"/index"})
    @ResponseBody
    public String index() {
        return "index";
    }

    @RequestMapping({"/err"})
    @ResponseBody
    public String error() {
        return "err";
    }
}
